#!/usr/bin/python
#coding:utf-8

from __future__ import unicode_literals

from django.db import models

# Create your models here.

class orders(models.Model):
    order_no = models.CharField("订单号", max_length=20)
    add_time = models.DateTimeField('添加时间', auto_now_add=True)
    tailor_id = models.IntegerField('定制师ID', blank=True)
    user_id = models.CharField("用户ID", max_length=20)
    order_fee = models.CharField("订单金额", max_length=20)
    user_wechat = models.CharField("用户微信号", max_length=20)
    start_time = models.DateTimeField("开始时间")
    end_time = models.DateTimeField("结束时间")
    service_days = models.CharField("服务天数", max_length=20)
    user_cellphone = models.CharField("用户手机号", max_length=20)
    order_status = models.CharField("订单状态", max_length=20)
    pay_status = models.CharField("支付状态", max_length=20)
    review_status = models.CharField("评论状态", max_length=20)
    start_date = models.CharField("开始日期", max_length=20)

    class Meta:
        verbose_name_plural = '订单列表'
        db_table = 'orders'

    def __unicode__(self):
        return  self.order_no
